package com.motu.vertx.module.utility.webtool;

import io.vertx.core.json.JsonArray;

public class SearchCondition {
	private String jsonKey; //客户端上行的key
	private String operator;//操作符
	private String[] dbKeys;//数据库对应字段，有可能一对多，所以用数组，如content like ? or des like ?
	private JsonArray ids; //当操作符用in的时候，客户端需要传递一个id列表
	public String getJsonKey() {
		return jsonKey;
	}
	public String getOperator() {
		return operator;
	}
	public String[] getDbKeys() {
		return dbKeys;
	}
	public JsonArray getIds() {
		return ids;
	}
	public SearchCondition(String jsonKey,String operator,String[] dbKeys,JsonArray ids) {
		this.jsonKey = jsonKey;
		this.operator = operator;
		this.dbKeys = dbKeys;
		this.ids = ids;
	}

}
